<template>
  <div>
    <el-table :data="tableData" style="width: 100%">
      <el-table-column type="expand">
        <template #default="props">
          <div m="4">
            <p m="t-0 b-2">试用编号: {{ props.row.number }}</p>
            <p m="t-0 b-2">姓名: {{ props.row.name }}</p>
            <p m="t-0 b-2">开始日期: {{ props.row.date_Start }}</p>
            <p m="t-0 b-2">结束日期: {{ props.row.date_End }}</p>
          </div>
        </template>
      </el-table-column>
      <el-table-column label="试用人员名称" prop="name" />
      <el-table-column label="操作">
        <el-button size="small" @click="OnClickAddBtn">通过</el-button>
        <el-button size="small" type="danger" @click="OnClickDeleteBtn">未达标</el-button>
      </el-table-column>
    </el-table>
  </div>
</template>

<script lang="ts" setup>
import { ElMessageBox } from "element-plus"

const tableData = [
  {
    name: "gcb",
    number: "101",
    date_Start: "2020/2/2",
    date_End: "2020/3/3"
  }
]
function OnClickDeleteBtn() {
  ElMessageBox.confirm(`确认试用不通过?`)
}
function OnClickAddBtn() {
  ElMessageBox.confirm(`确认试用通过?`)
}
</script>
